package com.mjr.webmanage.filter;

import jakarta.servlet.*;
import jakarta.servlet.annotation.WebFilter;
import lombok.extern.slf4j.Slf4j;

import java.io.IOException;

@Slf4j
//@WebFilter("/*")
public class AbcFilter implements Filter {
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        log.info("拦截请求 ABcFilter执行了... 放行前");
        filterChain.doFilter(servletRequest, servletResponse);
        log.info("拦截请求 ABCFilter执行了... 放行后");
    }
}
